package com.huicoo.forestmanager.ui.patrol.forestCampTask.model;

import com.huicoo.forestmanager.network.HttpService;
import com.huicoo.forestmanager.network.bean.patrol.GetMyForestZoneBean;
import com.huicoo.forestmanager.network.bean.patrol.GetReportTimeSpanBean;
import com.huicoo.forestmanager.network.bean.patrol.PatrolTaskReportPositionBean;
import com.huicoo.forestmanager.network.bean.patrol.RecorddetailsBean;
import com.huicoo.forestmanager.network.bean.patrol.StartPatrolBean;
import com.huicoo.forestmanager.network.bean.patrol.StopPatrolBean;
import com.huicoo.forestmanager.ui.patrol.forestCampTask.contract.ForestCampTaskContract;

import java.util.HashMap;

import retrofit2.Call;

/**
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2019/4/8		    Administrator
 * 进行巡查任务的model
 */
public class ForestCampTaskModel implements ForestCampTaskContract.Model {

    @Override
    public Call<GetMyForestZoneBean> getMyForestZone(HashMap<String, String> params) {
        return HttpService.getInstance().getMyForestZone(params);
    }

    @Override
    public Call<RecorddetailsBean> getTaskDetails(HashMap<String, String> params) {
        return HttpService.getInstance().getTaskDetails(params);
    }

    @Override
    public Call<GetReportTimeSpanBean> getReportTimeSpan(HashMap<String, String> params) {
        return HttpService.getInstance().getReportTimeSpan(params);
    }

    @Override
    public Call<StartPatrolBean> startTask(HashMap<String, String> params) {
        return HttpService.getInstance().patrolTaskStart(params);
    }

    @Override
    public Call<PatrolTaskReportPositionBean> reportPosition(HashMap<String, String> params) {
        return HttpService.getInstance().patrolTaskReportPosition(params);
    }

    @Override
    public Call<StopPatrolBean> stopTask(HashMap<String, String> params) {
        return HttpService.getInstance().patrolTaskStop(params);
    }
}
